import random

def generate_hand(size, min_card, max_card):
    return [random.randint(min_card, max_card) for _ in range(size)]

def generate_test_data(num_tests, min_size, max_size, min_card, max_card, group_size):
    test_data = []
    for _ in range(num_tests):
        hand_size = random.randint(min_size, max_size)
        hand = generate_hand(hand_size, min_card, max_card)
        test_data.append((hand, group_size))
    return test_data

# 生成10组测试数据，每组牌的数量在5到10之间，牌的数值在1到10之间，组大小为3
test_data = generate_test_data(10, 5, 10, 1, 10, 3)
print(test_data)
# 输出测试数据